<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


<s:form theme="simple" name="form" action="askQuestion.htm"
	method="post">
	<s:hidden name="item.itemId" />
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td colspan="2">
				<s:actionerror cssClass="error-text" />
				<s:actionmessage cssClass="common-text" />
			</td>
		</tr>
		<tr>
			<td>
				<div class="blue-text16" style="margin: 0px 0px 0px 0px">
					<s:text name="askSeller.header" />
				</div>
				<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
				<div style="margin: 0px 0px 12px 0px">
					<table border="0" cellpadding="5" cellspacing="0" width="100%">
						<tbody>
							<tr>
								<td nowrap="nowrap" width="20">
								</td>
								<td align="center" valign="top" width="100%">
									<div style="margin: 0px 0px 10px 0px">
										<s:if test="askSellerId != 0">
											<table border="0" bordercolor="#e9f3bc" cellpadding="2"
												cellspacing="2" width="100%">

												<tbody>
													<tr>
														<td width="30%" align="right" nowrap="nowrap"
															class="search-text">
															<s:text name="askSeller.seller" />
														</td>
														<td width="80%" class="common-text">
														<s:if test="auctionWonlist != null">
															<s:property value="auctionWonlist.user.userId"/>
															<s:hidden name="uid" value="%{auctionWonlist.user.id}" />
															<s:hidden name="pass" value="%{auctionWonlist.id}" />
														</s:if>
														<s:else>
															<s:property value="item.userId.userId"/>
														</s:else>
														</td>
													</tr>
													<tr>
														<td align="right" nowrap="nowrap" class="search-text">
															<s:text name="askSeller.currentbid" />
														</td>
														<td width="80%" class="common-text">
															<b><s:property value="item.currentBid" /> </b>
														</td>
													</tr>
													<tr>
														<td align="right" nowrap="nowrap" class="search-text">
															<s:text name="askSeller.bidincrement" />
														</td>
														<td class="common-text">
															<s:property value="item.currency.currency" />
														</td>
													</tr>
													<tr>
														<td align="right" class="search-text">
															<s:text name="askSeller.quantity" />
														</td>
														<td class="common-text">
															<b> <s:property value="item.quantity" /> </b>
														</td>
													</tr>

													<tr>
														<td align="right" class="search-text">
															<s:text name="askSeller.timeleft" />
														</td>
														<td class="common-text">
															<b><s:if test="%{#attr.row.closed == true}">
																	<span class="error-text"><b>Auction Ended With Buy It Now</b> </span>
																</s:if> <s:else>
																	<s:date name="#attr.row.endTime" nice="true" />
																</s:else>
															</b>
															<!--Count_Down_Ticker-->
														</td>
													</tr>
													<tr>
														<td align="right" class="search-text">
															<s:text name="askSeller.started" />
														</td>
														<td class="common-text">
															<s:date name="item.startTime" format="EEEE, MMMM dd. yyyy HH:mm a"/>
														</td>
													</tr>
													<tr>
														<td align="right" class="search-text">
															Ends :
														</td>
														<td class="common-text">
															<s:date name="item.endTime" format="EEEE, MMMM dd. yyyy HH:mm a"/>
														</td>
													</tr>
													<tr>
														<td align="right" class="search-text">
															<s:text name="askSeller.currenttime" />
														</td>
														<td class="common-text">
															<s:date name="date" format="EEEE, MMMM dd. yyyy HH:mm a"/>
														</td>
													</tr>

													<tr>
														<td align="right" nowrap="nowrap" class="search-text">
															<s:text name="askSeller.startingbid" />
														</td>
														<td class="common-text">
															<s:property value="item.startBid"/> <s:property value="item.currency.currency"/>
														</td>
													</tr>
													<tr>
														<td align="right" class="search-text">
															<s:text name="askSeller.nrofbids" />
														</td>
														<td class="common-text">
															<b> <s:property value="item.bids.size"/> </b>
														</td>
													</tr>
													<tr>
														<td align="right" class="search-text">
															Location :
														</td>
														<td class="common-text">
															<b> <s:property value="user.region.categoryName"/> </b>
														</td>
													</tr>
													<tr>
														<td align="right" class="search-text">
															<s:text name="overview.para7" />
														</td>
														<td class="common-text">
															<b> <s:property value="user.country.categoryName"/> </b>
														</td>
													</tr>
												</tbody>
											</table>
										</s:if>
									</div>
									<input name="action" value="SendQuestion" type="hidden">
									<input name="ID" value="1209567603" type="hidden">
									<input name="Lang" value="en" type="hidden">
									<div style="margin: 20px 0px 0px 0px">
										<table width="100%" border="0" cellpadding="2" cellspacing="0">
											<tbody>
												<s:if test="askSellerId != 0">
													<tr>
														<td colspan="2">
															<table border="0" bordercolor="#e9f3bc" cellpadding="3"
																cellspacing="0" width="100%">
																<tbody>
																	<tr>
																		<td align="center" bgcolor="#f0f0e1" width="100%">
																			<font color="#333399" size="4"
																				face="Tahoma, Arial, Times"><s:property
																					value="item.title" /> </font>
																		</td>

																	</tr>
																</tbody>
															</table>

															<table border="0" bordercolor="#e9f3bc" cellpadding="1"
																cellspacing="0" width="100%">
																<tbody>
																	<tr>
																		<td align="center" bgcolor="#dadab6" width="100%">
																			<b>Item Nr.</b>
																			<s:property value="item.itemId" />
																			<!--Featured_Icon-->
																		</td>
																	</tr>
																</tbody>
															</table>
														</td>
													</tr>
												</s:if>
												<tr>
													<td colspan="2">
														&nbsp;
													</td>
												</tr>
												<tr>
													<td colspan="2">
														&nbsp;
													</td>
												</tr>
												<tr>
													<td width="100%" colspan="2" align="center"
														class="common-text">
														You are currently logged in as
														<a href="#" class="common-link"><b><s:property
																	value="user.userId" /> </b> </a>. To login as a different
														user,
														<a href="logout.htm" class="common-link"><s:text
																name="askSeller.signout" /> </a>, and
														<a href="login.htm" class="common-link"><s:text
																name="askSeller.login" /> </a>
														<s:text name="askSeller.again" />
													</td>
												</tr>
												<tr>
													<td colspan="2" width="100%">
													</td>
												</tr>
												<tr>
													<td width="30%" align="right" nowrap="nowrap"
														class="search-text">
														<b><s:text name="askSeller.subject" /> </b>
													</td>
													<td class="common-text">
														Question for seller, Item Nr.
														<s:property value="item.itemId" />
													</td>
												</tr>
												<tr>

													<td align="right" valign="top" nowrap="nowrap"
														class="search-text">
														<b><s:text name="askSeller.questions" /> </b>
													</td>
													<td>
														<s:textarea name="questions" cols="60" rows="10"
															cssClass="textfield"></s:textarea>
													</td>
												</tr>
												<tr>
													<td nowrap="nowrap" valign="top"></td>
													<td class="common-text">
														<s:checkbox name="selfCopy" cssClass="textfield"
															theme="simple" />
														<s:text name="askSeller.para1" />
													</td>
												</tr>

												<tr>
													<td colspan="2" align="center" nowrap="nowrap">
														<table border="0" cellspacing="0" cellpadding="0">
															<tr>
																<td>
																	<table border="0" cellspacing="0" cellpadding="0">
																		<tr>
																			<td>
																				<img src="images/middle/btn-grey-left1.gif" alt=" "
																					width="6" height="23" />
																			</td>
																			<td class="btn-grey-middle1 ">
																				<s:submit value="%{getText('button.submit')}"
																					theme="simple" cssClass="submit-btn-common" />
																			</td>
																			<td>
																				<img src="images/middle/btn-grey-right1.gif" alt=" "
																					width="6" height="23" />
																			</td>
																		</tr>
																	</table>
																</td>
															</tr>
														</table>
													</td>
												</tr>

											</tbody>
										</table>

									</div>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</td>
		</tr>
	</table>
</s:form>
